public class Cylinder extends ObjectVolume {
    double br, h;

    Cylinder(double br, double h) {
        this.br = br;
        this.h = h;
    }
    double getArea(){
        return 3.14 * br*br*2+3.14*br*2*h;
    }
    double getVolume() {
        return 3.14 * br * br * h;
    }
}